package exemplos.layouts.borderpane;



import javafx.application.Application;
import javafx.geometry.Pos;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;

public class BorderSample extends Application {
	
	@Override
	public void start(Stage primaryStage) throws Exception {
		BorderPane borderPane = new BorderPane();
		primaryStage.setScene(new Scene(borderPane, 400, 400));
		Label top, bot, left, right, center;
		
		borderPane.setTop(top = new Label("Topo"));
		borderPane.setLeft(left = new Label("Esquerda"));
		borderPane.setBottom(bot = new Label("Baixo"));
		borderPane.setRight(right = new Label("Direita"));
		borderPane.setCenter(center = new Label("Centro"));
		
//		BorderPane.setAlignment(top, Pos.CENTER);
//		BorderPane.setAlignment(center, Pos.CENTER);
//		BorderPane.setAlignment(left, Pos.CENTER);
//		BorderPane.setAlignment(bot, Pos.CENTER);
//		BorderPane.setAlignment(right, Pos.CENTER);
		primaryStage.show();
	}
	
	public static void main(String[] args) {
		launch(args);
	}


}
